package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;
import java.util.Date;

public class Gonggao {
    private Integer id;

    private String title;

    private String content;

    private Integer createby;

    private String createusername;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createtime;

    private Integer updateby;
    private String updateusername;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp updatetime;

    private Integer status;

    public Gonggao(Integer id, String title, String content) {
        this.id = id;
        this.title = title;
        this.content = content;
    }

    public Gonggao(Integer id, String title, String content, Integer updateby, Timestamp updatetime, Integer status) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.updateby = updateby;
        this.updatetime = updatetime;
        this.status = status;
    }

    public Gonggao(String title, String content, Integer createby, Timestamp createtime, Timestamp updatetime, Integer status) {
        this.title = title;
        this.content = content;
        this.createby = createby;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.status = status;
    }

    public Gonggao(Integer id, String title, String content, String createusername, Timestamp createtime, String updateusername, Timestamp updatetime, Integer status) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.createusername = createusername;
        this.createtime = createtime;
        this.updateusername = updateusername;
        this.updatetime = updatetime;
        this.status = status;
    }

    public Gonggao() {
    }

    public Gonggao(Integer id, String title, String content, Integer createby, Timestamp createtime, Integer updateby, Timestamp updatetime, Integer status) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.createby = createby;
        this.createtime = createtime;
        this.updateby = updateby;
        this.updatetime = updatetime;
        this.status = status;
    }

    public Gonggao(String title, String content, Integer createby, Timestamp createtime, Integer updateby, Timestamp updatetime, Integer status) {
        this.title = title;
        this.content = content;
        this.createby = createby;
        this.createtime = createtime;
        this.updateby = updateby;
        this.updatetime = updatetime;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateby() {
        return updateby;
    }

    public void setUpdateby(Integer updateby) {
        this.updateby = updateby;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateusername() {
        return createusername;
    }

    public void setCreateusername(String createusername) {
        this.createusername = createusername;
    }

    public String getUpdateusername() {
        return updateusername;
    }

    public void setUpdateusername(String updateusername) {
        this.updateusername = updateusername;
    }
}